Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@apollo/server-gateway-interface
Advanced tools
Interface used to connect Apollo Gateway to Apollo Server
This package defines TypeScript types for the interface between Apollo Server and Apollo Gateway. It contains no runtime code.
The types in this package describe the API as of Gateway 0.35.0 (ie, with onSchemaLoadOrUpdate). It is extracted from the Apollo Server 3 apollo-server-types
package. Most of the type names have been changed to start with Gateway
, so that they coexist better with similarly-named types. (Because TypeScript is generally structurally typed, this is OK.)
Note that the cache scope field (eg, on requestContext.overallCachePolicy.scope
) is defined as any
in this package. That's because in AS3 this type is an enum, and enums in TypeScript are not structurally typed. So we can't actually create an object of this type without depending on AS3 (or updating AS3 to get its definition from somewhere shared).
We have updated @apollo/gateway
(v0 and v2) to define its types from this package rather than apollo-server-types
. This allows Gateway to be compatible with both AS3 and AS4 (and even AS2, for Gateway 0.x) without needing to pull either package's code into the TypeScript build.
Apollo Server 4 directly depends on this package and uses its types to construct its calls to the Gateway.
FAQs
Interface used to connect Apollo Gateway to Apollo Server
The npm package @apollo/server-gateway-interface receives a total of 824,068 weekly downloads. As such, @apollo/server-gateway-interface popularity was classified as popular.
We found that @apollo/server-gateway-interface demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.